#ifndef _NET_EVENTLOOP_H_
#define _NET_EVENTLOOP_H_




class EventPoller{
    init();
    stop();
    
    int create_file_event();
    int delete_file_event(aeEventLoop *eventLoop, int fd, int mask);
    int get_file_events();

    int create_time_event();
    int delete_time_event(int fd);
    
    loop();
    loop_once();

private:
    FileEvent *events;
    TimeEvent *timeEventHead;
};


#endif
